package jmine.tec.web.front.dispatcher.request;

import jmine.tec.web.front.dao.BackOfficeRequestStatusSystemIdentifier;
import jmine.tec.web.front.domain.BackOfficeRequestStatus;
import bancosys.tec.persist.builders.AbstractDBBuilder;

public class BackOfficeRequestStatusBuilder extends AbstractDBBuilder<BackOfficeRequestStatus> {
    private BackOfficeRequestStatus requestStatus = this.createBean();

    public static BackOfficeRequestStatusBuilder aRequestStatus() {
        BackOfficeRequestStatusBuilder builder = new BackOfficeRequestStatusBuilder();
        builder.name("aName");
        return builder;
    }

    public BackOfficeRequestStatusBuilder name(String name) {
        this.requestStatus.setName(name);
        return this;
    }

    public BackOfficeRequestStatusBuilder status(BackOfficeRequestStatusSystemIdentifier systemId) {
        this.requestStatus.setId(systemId.getSystemId());
        return this;
    }

    @Override
    protected BackOfficeRequestStatus doBuild() {
        return this.requestStatus;
    }

}
